//
//  LsyDetailViewController.m
//  Lsy3DToucheDemo
//
//  Created by Angela on 16/5/25.
//  Copyright © 2016年 Angela. All rights reserved.
//

#import "LsyDetailViewController.h"
@implementation LsyDetailViewController
-(void)viewDidLoad
{
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor redColor];
    self.title=@"DetailViewController";
}
//预览时底部菜单的添加
-(NSArray<id<UIPreviewActionItem>> *)previewActionItems
{
    UIPreviewAction *action1=[UIPreviewAction actionWithTitle:@"action1" style:UIPreviewActionStyleDefault handler:^(UIPreviewAction * _Nonnull action, UIViewController * _Nonnull previewViewController) {
        //点击后的操作
        NSLog(@"action1");
    }];
    UIPreviewAction *action2=[UIPreviewAction actionWithTitle:@"action2" style:UIPreviewActionStyleDefault handler:^(UIPreviewAction * _Nonnull action, UIViewController * _Nonnull previewViewController) {
        NSLog(@"action2");
    }];
    NSArray *actions=@[action1,action2];
    return actions;
}
@end
